package com.ctsims.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ctsims.common.annotation.Excel;
import com.ctsims.common.core.domain.BaseEntity;

/**
 * 学生信息对象 cts_stu
 * 
 * @author hhz
 * @date 2023-03-30
 */
public class CtsStu extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 学生ID */
    private Long stuId;

    /** 班级表 */
    private Long clsId;

    /** 专业表 */
    private Long majorId;

    /** 宿舍ID */
    private Long dorId;

    /** 学号 */
    @Excel(name = "学号")
    private Long stuNum;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别（0男 1女 2未知） */
    @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date birthdate;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phonenumber;

    public void setStuId(Long stuId) 
    {
        this.stuId = stuId;
    }

    public Long getStuId() 
    {
        return stuId;
    }
    public void setClsId(Long clsId) 
    {
        this.clsId = clsId;
    }

    public Long getClsId() 
    {
        return clsId;
    }
    public void setMajorId(Long majorId) 
    {
        this.majorId = majorId;
    }

    public Long getMajorId() 
    {
        return majorId;
    }
    public void setDorId(Long dorId) 
    {
        this.dorId = dorId;
    }

    public Long getDorId() 
    {
        return dorId;
    }
    public void setStuNum(Long stuNum) 
    {
        this.stuNum = stuNum;
    }

    public Long getStuNum() 
    {
        return stuNum;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBirthdate(Date birthdate) 
    {
        this.birthdate = birthdate;
    }

    public Date getBirthdate() 
    {
        return birthdate;
    }
    public void setPhonenumber(String phonenumber) 
    {
        this.phonenumber = phonenumber;
    }

    public String getPhonenumber() 
    {
        return phonenumber;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("stuId", getStuId())
            .append("clsId", getClsId())
            .append("majorId", getMajorId())
            .append("dorId", getDorId())
            .append("stuNum", getStuNum())
            .append("name", getName())
            .append("sex", getSex())
            .append("birthdate", getBirthdate())
            .append("phonenumber", getPhonenumber())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
